// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import { Lazyload } from 'vant';

import VueAxios from 'vue-axios'
import http from './api/http.js'
// import { CouponCell, CouponList } from 'vant';


// Vue.use(CouponCell);
// Vue.use(CouponList);
Vue.use(VueAxios, http)

Vue.config.productionTip = false

// 引入vant
import {
  Tabbar, TabbarItem, Swipe, SwipeItem, NoticeBar, Grid, GridItem,
  Search, Icon, Sidebar, SidebarItem, Form, Field, Button, NavBar, Checkbox,
  CheckboxGroup, Radio, RadioGroup,Cell, CellGroup,Uploader,Lazyload, AddressList ,Toast
} from 'vant';
// import { Swipe, SwipeItem } from 'vant';
// import { NoticeBar } from 'vant';
// import { Grid, GridItem } from 'vant';
// import { Search } from 'vant';
// import { Icon } from 'vant';
// Vue.use(Lazyload);
import { ContactCard, ContactList, ContactEdit } from 'vant';

Vue.use(ContactCard);
Vue.use(ContactList);
Vue.use(ContactEdit);
Vue.use(Lazyload);
Vue.use(Icon);
Vue.use(Search);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
// Vue.use(Lazylad);
Vue.use(NoticeBar);
// import { Sidebar, SidebarItem } from 'vant';
Vue.use(Sidebar);
Vue.use(SidebarItem);
// import { Swipe, SwipeItem } from 'vant';
// Vue.use(Swipe);
// Vue.use(SwipeItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(NavBar);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Radio);
Vue.use(RadioGroup);
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Uploader);
Vue.use(AddressList);

Vue.use(Toast);


import { Dialog } from 'vant';

// 全局注册
Vue.use(Dialog);

import store from './store'//引入store


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
